package org.springblade.modules.repair.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 救援告警信息紧急程度枚举
 * @author: Sharry
 * @createTime: 2025-07-15 14:16
 * @version: Version-1.0
 */
@Getter
@AllArgsConstructor
public enum RescueNoticeEventLevelEnum {

	NOT_URGENT(0, "不急"),

	NORMAL(1, "一般"),

	URGENT(2, "紧急"),

	VERY_URGENT(3, "特急");

	final int eventLevel;

	final String eventLevelDesc;

	/**
	 * 根据eventLevel获取对应的eventLevelDesc
	 */
	public static String getEventLevelDescByEventLevel(int eventLevel) {
		for (RescueNoticeEventLevelEnum levelEnum : RescueNoticeEventLevelEnum.values()) {
			if (levelEnum.getEventLevel() == eventLevel) {
				return levelEnum.getEventLevelDesc();
			}
		}
		return null;
	}



}
